<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="product" tagdir="/WEB-INF/tags/product"%>
<%@ taglib prefix="customer" tagdir="/WEB-INF/tags/customer"%>
<td></td>
<td class="consignee" colspan="8">
	<div class="order_show">
		<table cellspacing="0" cellpadding="0" border="0" width="100%">
			<tr>
				<td class="consignee" style="width:100px;">
					<table cellspacing="0" cellpadding="0" border="0" width="100%" class="consignee_table">
						<tr>
							<td style="text-align:center;">
								<a href="javascript:void(0)" onclick="parent.editProduct(${product.productId})">
									<product:productImage product="${product}" sizeType="s1" linkType="0" style="vertical-align:middle;"/>
								</a>
								<br/>	
								<br/>	
								<span class="edit" title="<fmt:message key="product.edit"/>"></span>
								<a href="javascript:parent.editProduct(${product.productId})"><fmt:message key="product.edit"/></a>
							</td>
						</tr>
					</table>
				</td>
				<td style="vertical-align:top;">
					<table cellspacing="0" cellpadding="0" border="0" width="100%" class="consignee_table" >
						<tr>
							<th><fmt:message key="product.productCode"/>:</th>
							<td>
								${product.productCode}
							</td>
						</tr>
						<tr>
							<th width="100px;text-align:center"><fmt:message key="proudctItemInList.productReview"/>:</th>
							<td>
								<fmt:formatNumber var="score" value="${product.productStat.reviewScore}" pattern="0.0"/>
								<em>${score}</em>
								 <customer:scoreStar value="${score}"/>
								 <fmt:message key="productDetail.onshowReviewCount.title">
									<fmt:param>${product.productStat.onShowReviewCount}</fmt:param>
								</fmt:message>
							</td>
						</tr>
						<tr>
							<th><fmt:message key="proudctItemInList.consultCount"/>:</th>
							<td>
								${product.consultCount}
							</td>
						</tr>
						<tr >
							<th><fmt:message key="proudctItemInList.viewCount"/>:</th>
							<td>
								${product.productStat.viewCount}
							</td>
						</tr>
						<tr  style="display: none;">
							<th><fmt:message key="proudctItemInList.buyCount"/>:</th>
							<td>
								${product.productStat.buyCount}
								(<fmt:message key="proudctItemInList.buyTimes">
									<fmt:param>${product.productStat.buyTimes}</fmt:param>
								</fmt:message>)
							</td>
						</tr>
						<tr>
							<th><fmt:message key="product.linkFront"/>:</th>
							<td>
								<c:choose>
									<c:when test="${product.status == 1}">
										<input type="text" class="inputtxt" style="width:400px;" value="<product:productUrlForFront product="${product}"/>"/>
										<span class="hyperlink"></span>
										<a href="<product:productUrlForFront product="${product}"/>" target="_blank"><fmt:message key="product.linkFront.open"/></a>
									</c:when>
									<c:otherwise>
										<fmt:message key="product.linkFront.notActive"/>
									</c:otherwise>
								</c:choose>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</div>
</td>

<script type="text/javascript">
$j(document).ready(function () {
});
</script>
